package cqie.frame.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 *
 * (ClazzCourseTeacher)表实体类
 *
 * @author makejava
 * @since 2021-09-29 08:50:04
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("clazz_course_teacher")
@ApiModel(description = "课表表")
public class ClazzCourseTeacher extends Model<ClazzCourseTeacher> {
    //课表ID
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "课表ID")
    private Long id;

    @TableField(value = "clazzId")
    @ApiModelProperty(value = "课表Id")
    private Long clazzId;

    @TableField(value = "courseId")
    @ApiModelProperty(value = "课程Id")
    private Long courseId;

    @TableField(value = "teacherId")
    @ApiModelProperty(value = "教师Id")
    private Long teacherId;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

